﻿/*------------------------------------------------
// File Description: FootProtectConfig DataBase Entity
// Author:			 Crane
// Create Time:		 2021-01-07 20:37:31
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 护脚机配置
    /// </summary>
    [Table(nameof(FootProtectConfig))]
    public class FootProtectConfig : BaseEntity
    {
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _footProtectSortNos = string.Empty;
        private string _overTurnSortNos = string.Empty;

        #region Public Property

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 护脚序列
        ///</Summary>
        public string FootProtectSortNos
        {
            get { return string.IsNullOrWhiteSpace(_footProtectSortNos) ? string.Empty : _footProtectSortNos; }
            set { _footProtectSortNos = value; }
        }

        ///<Summary>
        /// 翻转序列
        ///</Summary>
        public string OverTurnSortNos
        {
            get { return string.IsNullOrWhiteSpace(_overTurnSortNos) ? string.Empty : _overTurnSortNos; }
            set { _overTurnSortNos = value; }
        }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 护脚机配置
        /// </summary>
        public virtual DbSet<FootProtectConfig> FootProtectConfigs { get; set; }
    }
}